public class Dubo100kuai {

    public static void main(String[] args) {
        11123
        Person person = new Person();
        modifyName(person,"jones");
        System.out.println(person);

    }


    public static void modifyName(Person person,String name) {
        person.setName(name);
        System.out.println(person);
    }



    static class Person {

        private String name = "Riefu";

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String toString() {
            return "Person{" +
                    "name='" + name + '\'' +
                    '}';
        }
    }
}
